package com.mask.roll.edu.client;

import com.mask.roll.common.util.RollResponse;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author hx
 * @since 2021/10/29 4:25 下午
 */
@Component
@FeignClient("service-order")
public interface OrderClient {

    @GetMapping("/order/is/buy/course/{courseId}/{memberId}")
    @ApiOperation("查询课程支付状态")
    public RollResponse isBuyCourse(
            @ApiParam("课程id") @PathVariable("courseId") String courseId,
            @ApiParam("用户id") @PathVariable("memberId") String memberId);
}
